<!DOCTYPE html>
<!--[if lt IE 7]>

<html class="lt-ie9 lt-ie8 lt-ie7" lang="en">

<![endif]-->
<!--[if IE 7]>

<html class="lt-ie9 lt-ie8" lang="en">

<![endif]-->
<!--[if IE 8]>

<html class="lt-ie9" lang="en">

<![endif]-->
<!--[if gt IE 8]>
<!-->

<html lang="en">

    <!--
  <![endif]-->
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"></meta>
        <?php
        $url_css = $url_base_theme . "/css/";
        foreach ($array_css as $style) {
            if (is_array($style)) {
                echo str_replace("[URL]", $url_css, $style[0]);
            } else {
                ?>
                <link rel="stylesheet" href="<?php echo $url_css; ?><?php echo $style; ?>.css?p=<?= uniqid() ?>" type="text/css" media="screen" />
            <?php }
        } ?>
        <link rel="shortcut icon" href="<?= URL::base() ?>favicon.ico" />
        <?php
        $url_js = $url_base_theme;
        foreach ($array_script as $script) {
            if (is_array($script)) {
                echo str_replace("[URL]", $url_js, $script[0]);
            } else {
                ?>
                <script src="<?php echo $url_js . "/js/"; ?><?php echo $script; ?>.js?p=<?= uniqid() ?>" ></script>
        <?php }
    } ?>
        <title><?= $title ?></title>
        <script>
            var url_base_theme = '<?= $url_base_theme ?>';
            var url_base_media = '<?= $url_base_media ?>';
            var url_base = '<?= URL::base() ?>';
        </script>
    </head>

<?php echo View::factory('../template/' . $template . '/' . $layout)->set('content', $content)->render(); ?>

</html>
